package com.example.springboot.mapper;

import com.example.springboot.entity.SelfServicePoint;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SelfServicePointMapper {
    List<SelfServicePoint> findAll();
    List<SelfServicePoint> findByAdminId(Integer adminId);
    SelfServicePoint findById(Integer pointId);
    void insert(SelfServicePoint point);
    void update(SelfServicePoint point);
    void delete(Integer pointId);
    Integer findAdminIdByUsername(String username);
    String findAdminRoleByUsername(String username);
}